package org.learn.test;

import java.util.Scanner;

public class SwitchExercise03 {
    public static void main(String[] args) {
        System.out.println("请输入月份");
        Scanner myScanner = new Scanner(System.in);
         int month = myScanner.nextInt();
         switch (month){
             case 3 :
             case 4 :
             case 5 :
                 System.out.println("现在是春季");
                 break;
             case 6 :
             case 7 :
             case 8 :
                 System.out.println("现在是夏季");
                 break;
             case 9 :
             case 10 :
             case 11 :
                 System.out.println("现在是球季");
                 break;
             case 12 :
             case 1 :
             case 2 :
                 System.out.println("现在是冬季");
                 break;
             default :
                 System.out.println("你输入的月份不对，重新输入！！！！");
         }
    }
}
